home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4323 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.0 KB

  1. Path: nntp.crl.com!usenet
  2. From: sean@crl.com (Sean Kenefick)
  3. Newsgroups: comp.lang.c++
  4. Subject: Using MFC with C
  5. Date: Mon, 29 Jan 1996 19:31:35 GMT
  6. Organization: CRL Dialup Internet Access
  7. Message-ID: <4ej7el$j3a@nntp.crl.com>
  8. NNTP-Posting-Host: crl10.crl.com
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11.  
  12. OK -- a lamo question.
  13.  
  14. I'm a C programmer just now learning C++.
  15.  
  16. I have an exisiting project -- a big one -- that has been written in
  17. C.  I want to add a new C++ module with a newly created class which
  18. uses, but isn't derived from, a couple of MFC classes (CString for
  19. example).  I *definitely* don't want to rewrite all my C code.  Is it
  20. possible to call a class' method in a C++ module from an exisiting
  21. external C module?  How should they be declared?  I tried using extern
  22. and extern "C" but the compiler just threw it back at me.
  23.  
  24. BTW:  I can't put all these things in the same module because "AFX.H"
  25. and "WINDOWS.H" conflict with each other.  The C code won't compile
  26. with the "AFX.H" and vice-versa.
  27.  
  28. Any help would be greatly appreciated.
  29.  
  30.  
  31.